import { Utility } from "@/libs/utility";
export const demographicCharacteristicsForm = [
  {
    fieldName: "id",
    fieldCNName: "",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "",
  },
  {
    /** 字段名，如：name */
    fieldName: "examineeCode",
    /** 字段对应的中文解释，如：姓名 */
    fieldCNName: "受试者编号",
    /** 字段的值，如：张三 */
    filedValue: 1,
    disabled: true,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
  },
  {
    disabled: true,
    /** 字段名，如：name */
    fieldName: "examineeName",
    /** 字段对应的中文解释，如：姓名 */
    fieldCNName: "受试者姓名",
    /** 字段的值，如：张三 */
    filedValue: 1,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
  },
  {
    disabled: true,
    /** 字段名，如：name */
    fieldName: "filterNo",
    /** 字段对应的中文解释，如：姓名 */
    fieldCNName: "筛选号",
    /** 字段的值，如：张三 */
    filedValue: 1,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
  },
  {
    fieldName: "race",
    fieldCNName: "种族",
    filedValue: "",
    span: 2,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    itemList: Utility.getDictList("race"),
  },
  {
    fieldName: "nativePlace",
    fieldCNName: "籍贯",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    span: 2,
  },
  {
    fieldName: "job",
    fieldCNName: "职业",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    itemList: Utility.getDictList("job"),
    span: 2,
  },
  {
    fieldName: "workUnit",
    fieldCNName: "工作单位",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    span: 2,
  },
  {
    fieldName: "maritalStatus",
    fieldCNName: "婚姻状况",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    span: 2,
    type: "select",
    itemList: Utility.getDictList("marital_status"),
  },
  {
    fieldName: "residenceProvince",
    fieldCNName: "现居地址",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    fieldName: "residenceDetail",
    fieldCNName: "详细地址",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    // 这里应该是选择的，后面再确认
    fieldName: "frequentContact",
    fieldCNName: "常用联系人",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    span: 2,
  },
  {
    // 这里应该是选择的，后面再确认
    fieldName: "frequentContactTel",
    fieldCNName: "常用联系人电话",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputNumber",
    rules: {
      type: "phone",
    },
    span: 2,
  },
  {
    // 这里应该是选择的，后面再确认
    fieldName: "createByName",
    fieldCNName: "记录人",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    span: 2,
    disabled: true,
  },
  {
    // 这里应该是选择的，后面再确认
    fieldName: "createTime",
    fieldCNName: "记录时间",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    span: 2,
    disabled: true,
  },
  //   {
  //     fieldName: "remark",
  //     fieldCNName: "备注",
  //     span: 2,
  //     filedValue: "",
  //     /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
  //     type: "inputNumber",
  //   },
];
